<?php

namespace app\admin\listener;

class Logs
{
    public function handle($model)
    {
        if (method_exists($model, 'recordLog')) {
            $model::recordLog($model);
        }
    }
}